package demo.spring.ioc;

import org.springframework.beans.factory.groovy.GroovyBeanDefinitionReader;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.GenericApplicationContext;
import org.springframework.context.support.GenericGroovyApplicationContext;

/**
 * Created by lushun.chen on 2017/3/25.
 *
 * @author lushun.chen
 */
public class MainWithGroovy {

    public static void main(String[] args) {
      //  ApplicationContext context = new GenericGroovyApplicationContext("services.groovy", "daos.groovy");

        ApplicationContext context = new GenericApplicationContext();
//        new GroovyBeanDefinitionReader(context).loadBeanDefinitions("services.groovy", "daos.groovy");
//        context.refresh();
    }
}
